﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserList.aspx.cs" Inherits="WebPubManager_UserList" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>添加用户</title>
    
    <link href="../css/page.css" rel="Stylesheet" type="text/css" />
</head>
<body>
<script type="text/javascript">
    //打开重置密码页面 addby zhongjian 20090927
    function OpenPassSet(id) {
        var url = "UserPassSet.aspx?id='" + id + "'";
        window.open(url, "view", "top=200,left=200,toolbar=no,menubar=no,scrollbars=yes,location=no,status=no,width=280,height=250;");
    }
    //用对话框模式打开重置密码页面,目的是在关闭弹出对话框之前不能做其它操作 addby zhongjian 20091018
    function OpenPassSet1(id) {
        returnVal = showModalDialog("UserPassSet.aspx?id=" + id + "", "", "dialogWidth=300px;dialogHeight=300px");
        if (returnVal == "True")//在子页面关闭时,当获取返回值为True,则刷新本页面
        {
            window.location.href = window.location.href; window.location.reload;
        }
    }
	</script>
    <form id="form1" runat="server">
    <div>  
        <table class="tab_top" width="98%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="17">
                    <img src="../images/tab_top_left.gif" width="17" height="35" alt="" />
                </td>
                <td  align="center">
                   &nbsp;
                </td>
                <td >
                    <div>
                        <a href="UserEdit.aspx">添加用户</a></div>
                </td>
                <td width="5" align="right">
                    <img src="../images/tab_top_right.gif" width="5" height="35" alt="" />
                </td>
            </tr>
        </table>
        <table style="width: 98%; border-top-width: 0px" class="tab">
            <tr style="border-top-width: 0px">
                <td style="border-top-width: 0px">
                    <controlDefine:CustomGridView ID="gridviewCar" runat="server" AllowPaging="True" Width="785px"
                        HideTextLength="30" DivFstClass-DivButtonClass="input" AutoGenerateColumns="False"
                        DivScdClass-DivButtonClass="input" DivTrdClass-DivButtonClass="input" ShowCmpAndCancel="False"
                        AllowOnMouseOverEvent="False" ShowItemNumber="True" AutoGenerateDeleteConfirm="True"
                        CustomSortExpression="" AllowSortingAscImgCss="" AllowSortingDescImgCss="" ShowHideColModel="None"
                        OnRowCreated="gridviewCar_RowCreated"  OnOnLoadData="recvgrid_OnLoadData">
                        <PagerSettings Visible="False" />
                        <Columns>
                            <asp:BoundField HeaderText="用户ID" DataField="USERID" />
                            <asp:BoundField HeaderText="用户名称" DataField="USERNAME" />
                            <asp:BoundField HeaderText="密码" DataField="QUERY_PASS" />
                            <asp:BoundField HeaderText="电话" DataField="TEL" />
                            <asp:BoundField HeaderText="手机" DataField="MOBILE" />
                            <asp:TemplateField HeaderText="编辑记录">
                                <itemtemplate>
                                    <asp:HyperLink ID="hyedit" runat="server" Text="编辑"></asp:HyperLink>
                                </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="重置密码">
                                <itemtemplate>
                                <!--重置密码修改为三种方式,在页面中实现 edit by zhongjian 20090927-->
                                <a href='#' onclick="OpenPassSet1('<%# DataBinder.Eval(Container.DataItem,"ID") %>')";>重置密码</a>
                                   <%--<a href='<%# DataBinder.Eval(Container.DataItem,"ID", "UserList.aspx?action=reset&id={0}") %>' onclick="return confirm('确定要重置该用户的密码?')">重置密码</a>--%>
                                </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="删除记录">
                                <itemtemplate>
                                    <asp:HyperLink ID="hydel" runat="server" Text="删除"></asp:HyperLink>
                                </itemtemplate>
                             </asp:TemplateField>
                        </Columns>
                    </controlDefine:CustomGridView>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
